import com.example.User1;
import org.junit.Test;
import org.junit.runner.RunWith;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.test.context.ContextConfiguration;
import org.springframework.test.context.junit4.SpringRunner;

@RunWith(SpringRunner.class)
@ContextConfiguration("classpath:life.xml")
public class MyTest2 {
    @Autowired
    User1 user1;

    @Test
    public void testLife() {
        System.out.println(user1);
    }
}
